<%@ page language="java"
	import="java.util.*,com.funning.bean.*,java.text.*"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="m" uri="mytaguri"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>查看笑话</title>
		<script LANGUAGE="JavaScript">

function del() {

	if (window.confirm("确实要删除吗？")) {
		return true;
	} else {
		return false;
	}
}
</script>



	</head>

	<body bgcolor="#FAFBE7">
	<% int i=1; %>

		<!-- 前面的logo -->
		<center>
			<form action="" method="post">
			<m:split pageSize="${ 8 }" date="${ requestScope.funningList }">
			
			
				<table border="1" cellpadding="0" bordercolor="#59A646"
					cellspacing="1">

					<tr>
						<td>
							序号：
						</td>
						<td><%=i++ %></td>
						<td rowspan="3">
							<a href="getFuningById.action?id=${ dataRow.ofId }"> 更新<br />
							</a>
							<a href="delFuning.action?id=${ dataRow.ofId }"
								onclick="return del()"> 删除</a>
						</td>
					</tr>
					<tr>
						<td>
							内容：
						</td>
						<td width="700" height="50">${dataRow.ofDesc}</td>
					</tr>
					<tr>
						<td>
							上传时间
						</td>
						<td><fmt:formatDate value="${dataRow.ofTime}" pattern="yyyy-MM-dd HH:mm:ss"/>  </td>
					</tr>

				</table>
			
					</m:split>
					
						<a href='getAllFuning.action?currentPage=1'>首页</a>
						<a href='getAllFuning.action?currentPage=${ currentPage-1 }'>上一页</a>
						<a href='getAllFuning.action?currentPage=${ currentPage+1 }'>下一页</a>
						<a href='getAllFuning.action?currentPage=${ totalPage }'>尾页</a>
						${ currentPage }/${ totalPage }页
			</form>


		</center>

	</body>
</html>
